StellarPay\Subscriptions\Models\Subscription C

Total Complexity 112
Dependencies 25
Dependents 62
Total lines 860
Lines of code 377
Logical lines of code 177
Comment lines 263
Methods 58
Properties 1

Methods 58

Method Rating Maintainability Complexity Lines of code
calculateNextBillingDate()
S
50 7 28
getFormattedNextBillingAt()
S
61 8 12
canPause()
S
70 5 6
getFormattedStatusLabel()
S
59 4 15
getRenewalOrders()
S
55 3 20
canResume()
S
70 4 6
getPendingPaymentMessage()
S
57 2 18
pause()
S
68 3 7
canUpdate()
S
71 3 6
cancel()
S
68 3 7
getStripeDashboardLink()
S
67 3 8
calculateEndDate()
S
60 2 14
getLastRenewalOrder()
S
69 2 7
resume()
S
69 2 7
complete()
S
69 2 7
getSubscriptionProduct()
S
65 2 9
getLastOrder()
S
70 2 7
getLastPaymentMethod()
S
68 2 8
isScheduleType()
S
76 2 4
willPauseAtPeriodEnd()
S
80 2 3
isSubscriptionPayments()
S
69 2 7
canCancel()
S
72 2 6
updatePaymentMethod()
S
71 2 6
suspend()
S
69 2 7
getTableName()
S
75 2 4
pauseAtPeriodEnd()
S
68 2 7
save()
S
69 2 7
customerHasSubscriptions()
S
67 2 8
updateStatus()
S
69 2 7
totalCount()
S
75 2 4
getFormattedBillingPeriod()
S
69 2 7
calculateNextBillingDateFromToday()
S
62 1 12
getCancellableSubscriptionStatuses()
S
69 1 8
canUpdateStatus()
S
80 1 3
hasCancellableStatus()
S
79 1 3
hasEndDate()
S
80 1 3
hasRenewalDatePassed()
S
80 1 3
getNewPaymentMethodForRenewal()
S
80 1 3
canUpdatePaymentMethod()
S
65 1 10
getMetaTableNameWithoutDBPrefix()
S
80 1 3
getMetaTableName()
S
80 1 3
deleteNewPaymentMethodForRenewal()
S
80 1 3
cancelAtPeriodEnd()
S
79 1 3
saveNewPaymentMethodForRenewal()
S
79 1 3
find()
S
79 1 3
removeCancelAtPeriodEnd()
S
80 1 3
findByFirstOrderId()
S
78 1 3
getLastOrderAmount()
S
75 1 4
findAllByFirstOrderId()
S
78 1 3
findByFirstOrderAndItemId()
S
71 1 6
create()
S
73 1 5
factory()
S
80 1 3
fromQueryBuilderObject()
S
80 1 3
query()
S
80 1 3
delete()
S
80 1 3
getCustomerId()
S
82 1 3
hasSubscriptions()
S
79 1 3
findByTransactionId()
S
78 1 3